package com.coconet.gas.vo.dw;

import java.io.Serializable;
import javax.persistence.*;

@Table(name = "target_ip")
public class TargetIp implements Serializable {
    @Id
    private Integer id;

    /**
     * targetIp
     */
    private String ip;

    private String port;

    @Column(name = "target_id")
    private String targetId;

    private static final long serialVersionUID = 1L;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取targetIp
     *
     * @return ip - targetIp
     */
    public String getIp() {
        return ip;
    }

    /**
     * 设置targetIp
     *
     * @param ip targetIp
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * @return port
     */
    public String getPort() {
        return port;
    }

    /**
     * @param port
     */
    public void setPort(String port) {
        this.port = port;
    }

    /**
     * @return target_id
     */
    public String getTargetId() {
        return targetId;
    }

    /**
     * @param targetId
     */
    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", ip=").append(ip);
        sb.append(", port=").append(port);
        sb.append(", targetId=").append(targetId);
        sb.append("]");
        return sb.toString();
    }
}